<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ taglib prefix="tags" tagdir="/WEB-INF/tags"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%>
<head>
    <title><fmt:message key="contentContainer" /></title>
</head>
<body>
    <div id="contentContainerSearchResultFragment">
        <h1><fmt:message key="contentContainer" /></h1>
        <script type="text/javascript">
            dojo.addOnLoad(function() {
                dojo.query(".contentContainerAjaxSearch").forEach(function(element) {
                    Spring.addDecoration(new Spring.AjaxEventDecoration({
                        elementId: element.id,
                        event: "onclick",
                        params: { decorator: "none" }
                    }));
                })

                dojo.query(".contentContainerAjaxDelete").forEach(function(element) {
                    Spring.addDecoration(new Spring.AjaxEventDecoration({
                        elementId: element.id,
                        event: "onclick",
                        popup: "true",
                        params: { decorator: "none" }
                    }));
                })
            });
        </script>
        <c:url var="searchUrl" value="/domain/contentContainer/search.action"/>
        <table class="listEntities">
            <thead>
                <tr>
                    <th scope="col">
                        <a id="sortLinkcontentInode" class="contentContainerAjaxSearch" href="${searchUrl}?${contentContainerSearchForm.contentInodeQueryStringForSortableHeader}">
                            <fmt:message key="contentContainer_contentletInode"/>&nbsp;${contentContainerSearchForm.contentInodeSortStatusEntity}
                        </a>
                    </th>
                    <th scope="col">
                        <a id="sortLinkcontainerInode" class="contentContainerAjaxSearch" href="${searchUrl}?${contentContainerSearchForm.containerInodeQueryStringForSortableHeader}">
                            <fmt:message key="contentContainer_containerInode"/>&nbsp;${contentContainerSearchForm.containerInodeSortStatusEntity}
                        </a>
                    </th>
                    <th scope="col">
                        <a id="sortLinklive" class="contentContainerAjaxSearch" href="${searchUrl}?${contentContainerSearchForm.liveQueryStringForSortableHeader}">
                            <fmt:message key="contentContainer_live"/>&nbsp;${contentContainerSearchForm.liveSortStatusEntity}
                        </a>
                    </th>
                    <th scope="col">
                        <a id="sortLinkdeleted" class="contentContainerAjaxSearch" href="${searchUrl}?${contentContainerSearchForm.deletedQueryStringForSortableHeader}">
                            <fmt:message key="contentContainer_deleted"/>&nbsp;${contentContainerSearchForm.deletedSortStatusEntity}
                        </a>
                    </th>
                    <th scope="col">
                        <a id="sortLinklocked" class="contentContainerAjaxSearch" href="${searchUrl}?${contentContainerSearchForm.lockedQueryStringForSortableHeader}">
                            <fmt:message key="contentContainer_locked"/>&nbsp;${contentContainerSearchForm.lockedSortStatusEntity}
                        </a>
                    </th>
                    <th scope="col">
                        <a id="sortLinkshowOnMenu" class="contentContainerAjaxSearch" href="${searchUrl}?${contentContainerSearchForm.showOnMenuQueryStringForSortableHeader}">
                            <fmt:message key="contentContainer_showOnMenu"/>&nbsp;${contentContainerSearchForm.showOnMenuSortStatusEntity}
                        </a>
                    </th>
                    <th scope="col">
                        <a id="sortLinkmodDate" class="contentContainerAjaxSearch" href="${searchUrl}?${contentContainerSearchForm.modDateQueryStringForSortableHeader}">
                            <fmt:message key="contentContainer_modDate"/>&nbsp;${contentContainerSearchForm.modDateSortStatusEntity}
                        </a>
                    </th>
                    <th scope="col">
                        <a id="sortLinkmodUser" class="contentContainerAjaxSearch" href="${searchUrl}?${contentContainerSearchForm.modUserQueryStringForSortableHeader}">
                            <fmt:message key="contentContainer_modUser"/>&nbsp;${contentContainerSearchForm.modUserSortStatusEntity}
                        </a>
                    </th>
                    <th scope="col">
                        <a id="sortLinkcreateDate" class="contentContainerAjaxSearch" href="${searchUrl}?${contentContainerSearchForm.createDateQueryStringForSortableHeader}">
                            <fmt:message key="contentContainer_createDate"/>&nbsp;${contentContainerSearchForm.createDateSortStatusEntity}
                        </a>
                    </th>
                    <th scope="col">
                        <a id="sortLinkcreateUser" class="contentContainerAjaxSearch" href="${searchUrl}?${contentContainerSearchForm.createUserQueryStringForSortableHeader}">
                            <fmt:message key="contentContainer_createUser"/>&nbsp;${contentContainerSearchForm.createUserSortStatusEntity}
                        </a>
                    </th>
                    <th scope="col">
                        <a id="sortLinksortOrder" class="contentContainerAjaxSearch" href="${searchUrl}?${contentContainerSearchForm.sortOrderQueryStringForSortableHeader}">
                            <fmt:message key="contentContainer_sortOrder"/>&nbsp;${contentContainerSearchForm.sortOrderSortStatusEntity}
                        </a>
                    </th>
                    <th scope="col">
                        <a id="sortLinkbeginTime" class="contentContainerAjaxSearch" href="${searchUrl}?${contentContainerSearchForm.beginTimeQueryStringForSortableHeader}">
                            <fmt:message key="contentContainer_beginTime"/>&nbsp;${contentContainerSearchForm.beginTimeSortStatusEntity}
                        </a>
                    </th>
                    <th scope="col">
                        <a id="sortLinkendTime" class="contentContainerAjaxSearch" href="${searchUrl}?${contentContainerSearchForm.endTimeQueryStringForSortableHeader}">
                            <fmt:message key="contentContainer_endTime"/>&nbsp;${contentContainerSearchForm.endTimeSortStatusEntity}
                        </a>
                    </th>
                    <th scope="col">&nbsp;</th>
                </tr>
            </thead>
            <tbody>
            <c:forEach items="${contentContainers}" var="contentContainer" varStatus="status">
                <tr>
                    <td>
                        <c:url var="showUrl1" value="/domain/contentlet/show.action">
                            <c:param name="contentlet.inode"><c:out value="${contentContainer.contentlet.inode}"/></c:param>
                        </c:url>
                        <a href="${showUrl1}"><c:out value="${contentContainer.contentlet.title}"/></a>
                    </td>
                    <td>
                        <c:url var="showUrl2" value="/domain/container/show.action">
                            <c:param name="container.inode"><c:out value="${contentContainer.containerInode}"/></c:param>
                        </c:url>
                        <a href="${showUrl2}"><c:out value="${contentContainer.container.title}"/></a>
                    </td>
                    <td>
                        <c:out value="${contentContainer.live}"/>
                    </td>
                    <td>
                        <c:out value="${contentContainer.deleted}"/>
                    </td>
                    <td>
                        <c:out value="${contentContainer.locked}"/>
                    </td>
                    <td>
                        <c:out value="${contentContainer.showOnMenu}"/>
                    </td>
                    <td>
                        <c:out value="${contentContainer.modDate}"/>
                    </td>
                    <td>
                        <c:out value="${contentContainer.modUser}"/>
                    </td>
                    <td>
                        <c:out value="${contentContainer.createDate}"/>
                    </td>
                    <td>
                        <c:out value="${contentContainer.createUser}"/>
                    </td>
                    <td>
                        <c:out value="${contentContainer.sortOrder}"/>
                    </td>
                    <td>
                        <c:out value="${contentContainer.beginTime}"/>
                    </td>
                    <td>
                        <c:out value="${contentContainer.endTime}"/>
                    </td>
                    <td>
                        <c:url var="showUrl" value="/domain/contentContainer/show.action">
                            <c:param name="contentContainer.inode" value="${contentContainer.inode}"/>
                        </c:url>
                        <c:url var="updateUrl" value="/domain/contentContainer/updateForm.action">
                            <c:param name="contentContainer.inode" value="${contentContainer.inode}"/>
                        </c:url>
                        <c:url var="confirmDeleteUrl" value="/domain/contentContainer/confirmDelete.action">
                            <c:param name="contentContainer.inode" value="${contentContainer.inode}"/>
                        </c:url>
                        <a class="actionShow" href="${showUrl}"><fmt:message key="label.link.show"/></a>
                        <a class="actionUpdate" href="${updateUrl}"><fmt:message key="label.link.update"/></a>
                        <a class="actionDelete contentContainerAjaxDelete" id="confirmDeleteUrl${status.index}" href="${confirmDeleteUrl}"><fmt:message key="label.link.delete"/></a>
                    </td>
                </tr>

            </c:forEach>
            </tbody>
            <tfoot>
                <tr>
                    <td colspan="14">
                        <p>
                            <tags:navigation pager="${pagerDisplay}" url="${searchUrl}" form="${contentContainerSearchForm}"/>
                        </p>
                    </td>
                </tr>
            </tfoot>
        </table>
    </div>
</body>